﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Mathmall.Administration.Migrations
{
    /// <inheritdoc />
    public partial class ChangeAttrGroupTable : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<string>(
                name: "AttrGroupName",
                table: "AttrGroup",
                type: "nvarchar(20)",
                nullable: true,
                comment: "组名",
                oldClrType: typeof(string),
                oldType: "char(20)",
                oldNullable: true,
                oldComment: "组名");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<string>(
                name: "AttrGroupName",
                table: "AttrGroup",
                type: "char(20)",
                nullable: true,
                comment: "组名",
                oldClrType: typeof(string),
                oldType: "nvarchar(20)",
                oldNullable: true,
                oldComment: "组名");
        }
    }
}
